package com.zhangshitong.springbootModel.base;

import java.io.Serializable;
import java.util.Date;

/**
 * 该类是后台数据发送到前端的响应信息
 * @author Administrator
 *
 */
public class ResMessage implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	

	public ResMessage(Object data) {
		super();
		this.data = data;
	}
	private Date time = new Date(); //后台数据发送时间
	private String status; //后台响应状态
	private Object data; //传输数据实体
	//private String hash; //摘要 数据完整性保护字 使用国密算法(或其他算法)计算
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	/*public String getHash() {
		if(this.data != null){
			return this.data.hashCode()+"";
		}
		return hash;
	}
	public void setHash(String hash) {
		this.hash = hash;
	}*/
	
}
